package com.cinc.mdm.modules.materialCodeRule.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 物料自动编码规则
 * @Author: jeecg-boot
 * @Date:   2023-08-31
 * @Version: V1.0
 */
@Data
@TableName("mdm_material_code_rule")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mdm_material_code_rule对象", description="物料自动编码规则")
public class MdmMaterialCodeRule implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**号段1*/
	@Excel(name = "号段1", width = 15, dicCode = "mdm_material_rule_type")
	@Dict(dicCode = "mdm_material_rule_type")
    @ApiModelProperty(value = "号段1")
    private java.lang.String part01;
	/**号段2*/
	@Excel(name = "号段2", width = 15, dicCode = "mdm_material_rule_type")
	@Dict(dicCode = "mdm_material_rule_type")
    @ApiModelProperty(value = "号段2")
    private java.lang.String part02;
	/**号段3*/
	@Excel(name = "号段3", width = 15, dicCode = "mdm_material_rule_type")
	@Dict(dicCode = "mdm_material_rule_type")
    @ApiModelProperty(value = "号段3")
    private java.lang.String part03;
	/**号段4*/
	@Excel(name = "号段4", width = 15, dicCode = "mdm_material_rule_type")
	@Dict(dicCode = "mdm_material_rule_type")
    @ApiModelProperty(value = "号段4")
    private java.lang.String part04;
	/**号段5*/
	@Excel(name = "号段5", width = 15, dicCode = "mdm_material_rule_type")
	@Dict(dicCode = "mdm_material_rule_type")
    @ApiModelProperty(value = "号段5")
    private java.lang.String part05;
    /**字符内容*/
    @Excel(name = "字符内容", width = 15)
    @ApiModelProperty(value = "字符内容")
    private java.lang.String fixed;
	/**日期格式*/
	@Excel(name = "日期格式", width = 15, dicCode = "mdm_date_fmt")
	@Dict(dicCode = "mdm_date_fmt")
    @ApiModelProperty(value = "日期格式")
    private java.lang.String dateFmt;
	/**序列号长度*/
	@Excel(name = "序列号长度", width = 15)
    @ApiModelProperty(value = "序列号长度")
    private java.lang.Integer seqLength;
	/**年*/
	@Excel(name = "年", width = 15)
    @ApiModelProperty(value = "年")
    private java.lang.Integer year;
	/**月*/
	@Excel(name = "月", width = 15)
    @ApiModelProperty(value = "月")
    private java.lang.Integer month;
	/**日*/
	@Excel(name = "日", width = 15)
    @ApiModelProperty(value = "日")
    private java.lang.Integer day;
    /**启用标志*/
    @Excel(name = "启用标志", width = 15)
    @ApiModelProperty(value = "启用标志")
    private String enableFlag;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
    /**租户ID*/
    @Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
}
